import { RouteRecordRaw, createRouter, createWebHistory } from "vue-router"
import NProgress from "nprogress"

const routes: RouteRecordRaw[] = [{ path: "/", component: () => import("../views/index.vue") }]

const router = createRouter({
    history: createWebHistory("/"),
    routes,
})

router.beforeEach(() => {
    NProgress.start()
})

router.afterEach(() => {
    NProgress.done()
})

export default router
